home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8070 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  32 lines

  1. Path: geraldo.cc.utexas.edu!usenet
  2. From: scottg@weiss.che.utexas.edu (Gavin Scott)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help: iostream.h and MSVC++4.0
  5. Date: 14 Feb 1996 06:22:07 GMT
  6. Organization: University of Texas at Austin
  7. Message-ID: <4frv2f$2j3@geraldo.cc.utexas.edu>
  8. NNTP-Posting-Host: slip-63-16.ots.utexas.edu
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.99.3
  11.  
  12. I'm just beginning to learn C++ and recently bought Stroustrup's book "The 
  13. C++ Programming Language."  In his example code, iostream.h is used 
  14. exclusively for input/output.  Upon trying to compile some of his programs 
  15. and receiving a lot of error messages, I looked up "iostream" in the 
  16. Visual C++ books online and came up with this:
  17.  
  18. "You can use iostream classes with the Microsoft« Windows« operating 
  19. system. String and file streams work without restrictions, but the 
  20. character-mode stream objects cin, cout, cerr, and clog are inconsistent 
  21. with the Windows graphical user interface."
  22.  
  23. A typical output for the programs in the book looks like:
  24.  
  25. "cout << "Hello World!\n"
  26.  
  27. Is there any way to get these programs to run on MSVC++?
  28.  
  29. Thanks,
  30. Gavin Scott
  31.  
  32.